/**
 * @Author YuanYuan
 * @Date 2022/9/15
 * @Time 19:52
 */
public class Singleton {
    private static Singleton instance = new Singleton();

    public static Singleton getInstance() {
        return instance;
    }

    private Singleton() {

    }

    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
    }
}
